package com.security.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;


/**
 * @Author zhang
 * @create 2022/9/8 10:35
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig implements Serializable {

    // 请求头属性名 auth
    private String tokenHeader;
    // 过期时间秒
    private Long expiration;
    // 加密密钥
    private String secret;

}
